package name.jiaosha.air.company.domain;

import java.math.BigDecimal;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ali8ba.Domain;

/**
 * 费用项目
 * 
 * @author xu
 * 
 */
@Entity
@Table(name = "expense_item")
public class ExpenseItem extends Domain {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1599948873761238790L;

	private Integer id;

	private Integer comId;

	private String name;

	private String pinyin;

	private BigDecimal expense;

	public ExpenseItem() {

	}

	@Id()
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false, precision = 11)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Basic()
	@Column(name = "com_id")
	public Integer getComId() {
		return comId;
	}

	public void setComId(Integer comId) {
		this.comId = comId;
	}

	@Basic()
	@Column(name = "name", length = 15)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Basic()
	@Column(name = "pinyin", length = 15)
	public String getPinyin() {
		return pinyin;
	}

	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}

	@Basic()
	@Column(name = "expense")
	public BigDecimal getExpense() {
		return expense;
	}

	public void setExpense(BigDecimal expense) {
		this.expense = expense;
	}

}
